package com.zby.ApiClientSdk;


import com.zby.ApiClientSdk.client.NameApiClient;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;


@Configuration
@ConfigurationProperties(prefix = "zbyapi.client")
@Data
@ComponentScan
public class ZbyApiClientConfig {

    private String accessKey;

    private String secretKey;

    @Bean
    public NameApiClient zbyClient() {

        return new NameApiClient(accessKey,secretKey);
    }

}
